package com.lijie.utilscommon.pwdmd5;

import org.apache.shiro.crypto.hash.SimpleHash;

/**
 * @author 哈喽;
 * @create 2020-07-20 20:10
 */
public class MD5Utils {
    public static String md5Encryption(String source,String salt){
        String algorithmName="MD5";
        int hashIterations=1024;
        SimpleHash simpleHash=new SimpleHash(algorithmName,source,salt,hashIterations);
        return simpleHash+"";
    }
}
